package com.shopping.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shopping.dao.Impl.IItemsDao;
import com.shopping.model.Items;
import com.shopping.service.IItemsService;
@Service
public class ItemServiceImpl implements IItemsService{

	@Autowired
	private IItemsDao itemsDao;

	public List<Items> getItemsByOrderId(int orderId) {
		return itemsDao.getItemsByOrderId(orderId);
	}

	public void itemsDelete(int orderId) {
		itemsDao.itemsDelete(orderId);
	}
	
}
